FROM frolvlad/alpine-oraclejdk8:slim
VOLUME /tmp
ADD push-server-0.1.0.jar app.jar
RUN sh -c 'touch /app.jar'
ENV JAVA_OPTS=""
ENV PORT="9998"
ENV DB_CONNECTION="jdbc:mysql://192.168.0.199:3306/PushServerDb"
ENV DB_USER="root"
ENV DB_PASSWORD="wh_68008232"
ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar /app.jar --spring.datasource.url=$DB_CONNECTION --spring.datasource.usernam=$DB_USER --spring.datasource.password=$DB_PASSWORD --port=$PORT " ]